#include<iostream>
#include"sql.hpp"

using std::cout;
using std::endl;


int main()
{   
    printf("MySQL client version is : %s\n", mysql_get_client_info());

    DataBase DB("study");
    
    auto ret = DB.InquireTable("warehouse");
    if(!ret)
    {
        DB.CreateTable("warehouse");   
    }
    DB.InquireTable("warehouse");

    for(int i = 55792; i < 1000000; i++)
    {
        char namebuf[1024] = {0};
        sprintf(namebuf,"name%d",i);
        DB.InsertData("warehouse",i,namebuf);
    }
    return 0;
}